package com.dfrz.ch10;

/**
 * 作者：wangmaokang
 * 日期: 2021/4/20 11:31
 * 描述:
 */
public class Abc2 {


    protected int getMax(int a,int b){
//        getMax(1.2f,1.1f);
        if (a>b){
            return a;
        }else {
            return b;
        }
    }

    public int getMax(int a,int b,int c){
        if (a>b){
            if (a>c){
                return a;
            }else {
                return c;
            }
        }else {
            if (b>c){
                return b;
            }else {
                return c;
            }
        }
    }

    public float getMax(float a,float b){
        if (a>b){
            return a;
        }else {
            return b;
        }
    }

}
